﻿using System.Net;
using System.Text;

namespace UdpServer
{
    public class StrBody:UDPBody
    {
        public string Content { get; set; }

        public StrBody(string content) : base()
        {
            Content = content;
        }

        public StrBody(byte[] bits, IPEndPoint remote)
        {
            base.BodyBytes = bits;
            Remote = remote;
            Content = Encoding.ASCII.GetString(BodyBytes);
        }
    }
}
